package com.boot.frame.qiniu;

import com.qiniu.util.Auth;

public class QiNiuConst {

    // Feq3rZ3O0NPdpYDSV-smELlveNFUEcEnGnmr6jXB

    private static final String accessKey = "Feq3rZ3O0NPdpYDSV-smELlveNFUEcEnGnmr6jXB";

    // kLUeyv8fAZfw1yfa0HjpCM_R420WBXS7-CEcdgnY

    // xvg307p51YG4gdFH9yzEoE6OhG3hwY8nhKO7kZKi

    private static final String secretKey = "xvg307p51YG4gdFH9yzEoE6OhG3hwY8nhKO7kZKi";

    // V2vV2V_POg5n0mqsr3ViUv64dnZMHYvc4GQblQWd

    // beewon

    private static final String bucket = "beewon";

    // jiajiali

    public static String getToken(){
        Auth auth = Auth.create(accessKey, secretKey);
        String upToken = auth.uploadToken(bucket);
        return upToken;
    }

    public static void main(String[] args) {
        System.out.println(new QiNiuConst().getToken());
    }

}
